jQuery.extend({

	/**
	 * 根据url获取参数
	 */
	getUrlParms : function(url) {
		url = url.split("?")[1];

		var ps = url.split("&");
		var p = "";
		var res = {};
		$(ps).each(function(i, o) {
					p = o.split("=");
					res[p[0]] = p[1];

				});
		return res;
	},
	getId : function(obj) {
		if (typeof obj == "string") {
			return obj.split("_")[1];
		}
		return $(obj).attr("id").split("_")[1];

	},
	formatCurrency : function(num) {
		num = num.toString().replace(/\$|\,/g, '');
		if (isNaN(num))
			num = "0";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num * 100 + 0.50000000001);
		cents = num % 100;
		num = Math.floor(num / 100).toString();
		if (cents < 10)
			cents = "0" + cents;
		for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++)
			num = num.substring(0, num.length - (4 * i + 3)) + ','
					+ num.substring(num.length - (4 * i + 3));
		return (((sign) ? '' : '-') + num + '.' + cents);
	},
	num2cn : function(num) {
		var cn = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"];
		return cn[num];
	},
	copyToClipboard : function(txt, msg, msg2) {
		if (window.clipboardData) {
			window.clipboardData.clearData();
			window.clipboardData.setData("Text", txt);
			alert(msg);
		} else if (navigator.userAgent.indexOf("Opera") != -1
				|| navigator.userAgent.indexOf("Chrome") != -1) {
			window.prompt(msg2, txt);
		} else if (window.netscape) {
			window.prompt(msg2, txt);
		}
	},

	numToWcode : function(num) {
		var a = num.split("");
		var l = parseInt(a[0]);
		var r = parseInt(a[1]);
		var id = 7 * l + r;
		var wcode = "";
		if (id < 26) {
			wcode = String.fromCharCode(id + 97);
		} else {
			wcode = String.fromCharCode(id + 39);
		}
		return wcode;
	},
	wcodeToNum : function(wcode) {
		var aa = wcode.charCodeAt(0);
		var id = 0;
		var num = 0;
		var r = 0;
		var l = 0;
		if (/[a-z]/.test(wcode)) {
			id = aa - 97;
		} else {
			id = aa - 39;
		}
		if ((id / 7) < 1) {
			num = "0" + id.toString();
		} else {
			r = id % 7;
			l = Math.floor(id / 7);
			num = l.toString() + r.toString();
		}
		return num;
	},

	strToWcode : function(str) {
		var newStr = "";
		var temp = "";
		var num = "";
		var k = 0;
		if (str.length > 1) {
			temp = str.split("");
			for (var j = 0; j < temp.length; j++) {
				if (k == j && k != 0) {
					continue;
				}
				if (temp[j] < 7) {
					k = j + 1;
					if ((j + 1) < temp.length) {
						if (temp[j + 1] < 7) {
							num = temp[j].toString() + temp[j + 1].toString();
							newStr += jQuery.numToWcode(num);
						} else {
							newStr += temp[j] + temp[j + 1];
						}
					} else {
						newStr += temp[j];
					}
				} else {
					newStr += temp[j];
				}
			}
		} else {
			newStr = str;
		}
		return newStr;
	},

	wcodeToStr : function(wcode) {
		var str = "";
		var w = wcode.split("");
		for (var i = 0; i < w.length; i++) {
			if (/[a-zA-Z]/.test(w[i])) {

				str += jQuery.wcodeToNum(w[i]);
			} else {
				str += w[i];
			}
		}
		return str;
	},
	numToCh : function(num) {

		if (num > 9) {
			if (num <= 35) {
				return String.fromCharCode(num + 55);
			} else if (num <= 61) {
				return String.fromCharCode(num + 61);
			} else {
				return ".";
			}
		} else {
			return num;
		}
	},
	chToNum : function(ch) {
		if (/[a-zA-Z]/.test(ch)) {
			if (/[a-z]/.test(ch)) {
				return ch.charCodeAt(0) - 61;
			} else {
				return ch.charCodeAt(0) - 55;
			}
		} else {
			return ch;
		}
	},
	getCursortPosition : function(ctrl) {// 获取光标位置函数
		var CaretPos = 0; // IE Support
		if (document.selection) {
			ctrl.focus();
			var Sel = document.selection.createRange();
			Sel.moveStart('character', -ctrl.value.length);
			CaretPos = Sel.text.length;
		}
		// Firefox support
		else if (ctrl.selectionStart || ctrl.selectionStart == '0')
			CaretPos = ctrl.selectionStart;
		return (CaretPos);
	},
	setCaretPosition : function(ctrl, pos) {// 设置光标位置函数
		if (ctrl.setSelectionRange) {
			ctrl.focus();
			ctrl.setSelectionRange(pos, pos);
		} else if (ctrl.createTextRange) {
			var range = ctrl.createTextRange();
			range.collapse(true);
			range.moveEnd('character', pos);
			range.moveStart('character', pos);
			range.select();
		}
	},
	// 插入光标位置
	storeCaret : function(obj) {// ie6 下调用(click) 以获得光标位置 不调用则无法使用insertText
		if (obj.createTextRange)
			obj.caretPos = document.selection.createRange().duplicate();
	},
	insertText : function(obj, txt) {
		// ie
		if (obj.createTextRange && obj.caretPos) {
			var caretPos = obj.caretPos;
			caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' '
					? txt + ' '
					: txt;

		}
		// ff
		else if (obj.setSelectionRange) {
			obj.value = obj.value.substr(0, obj.selectionStart) + txt
					+ obj.value.substr(obj.selectionEnd);

		} else {
			obj.value += txt;
		}
	}

});
jQuery.fn.extend({
	getId : function() {
		return $(this).split("_")[1];
	},
	intHtml : function(type) {
		if ($(this).html() != "") {
			return parseInt($(this).html());
		} else {
			if (type == 0) {
				return 0;
			} else {
				return "";
			}
		}
	},
	intVal : function(type) {

		if ($(this).val() != "") {
			return parseInt($(this).val());
		} else {
			if (type == 0) {
				return 0;
			} else {
				return "";
			}
		}
	},
	html2 : function(val) {
		if (val == 0) {
			$(this).html("0");
		} else {
			$(this).html(val);
		}
	},
	/**
	 * 
	 * @param {}
	 *            tipId:显示层id ,content:function(){ return "aaaa"}要显示的内容
	 */

	showTip : function(options) {

		var o = {
			tipId : "showTip",
			hover : true,
			relyId : "",// 限制在 某标签(id)范围内
			style : "show-tip",
			time : 500,
			content : function() {
				return "";
			},
			showFn : function() {
			},
			hideFn : function() {
			}
		};
		$.extend(o, options);
		var $tip = $("#" + o.tipId);
		if ($tip.size() == 0) {
			$tip = $("<div id='"
					+ o.tipId
					+ "'  style='position: absolute;z-index: 99999;display:none;' class='"
					+ o.style + "' ></div>");
			$("body").append($tip);
		}

		// 边框样式格式-暂未调用 (showTip.css) :
		var getNewHtml = function(html) {
			return "<table><tbody><tr><td id='lolTipHtml' >"
					+ html
					+ "</td><th></th></tr></tbody><tfoot><tr><td></td> <th></th></tr></tfoot></table>";
		};

		var tipHtml = "";

		var isMove = false;
		var relyRight = 0;
		var reltBottom = 0;

		var tipWidth = "";
		var tipHeight = "";
		var $w = $(window);
		var winWidth = 0;
		var winHeight = 0;
		var right = 0;
		var bottom = 0;
		var whFlag = true;

		var $b = "";
		if (o.relyId != "") {
			$b = $("#" + o.relyId);

			relyRight = $b.outerWidth();
			reltBottom = $b.outerHeight();
			var oleft = 0;
			var otop = 0;
			var obj = $b.get(0);

			while (obj.offsetParent) {
				oleft += obj.offsetLeft;
				otop += obj.offsetTop;
				obj = obj.offsetParent;
			}
			oleft += obj.offsetLeft;
			otop += obj.offsetTop;

			relyRight += oleft;
			reltBottom += otop;
		}

		var setState = function() {
			whFlag = true;
			if (whFlag) {
				tipWidth = $tip.outerWidth();
				tipHeight = $tip.outerHeight();
				winWidth = $w.width() + $w.scrollLeft();
				winHeight = $w.height() + $w.scrollTop();
				right = (relyRight <= winWidth) && relyRight != 0
						? relyRight
						: winWidth;
				bottom = (reltBottom <= winHeight) && reltBottom != 0
						? reltBottom
						: winHeight;
				whFlag = false;
			}
		};
		var setPos = function(e) {

			$tip.css({
						top : (e.pageY + tipHeight + 20 < bottom - 10 ? e.pageY
								+ 20 : bottom - tipHeight - 10)
								+ "px",
						left : (e.pageX + tipWidth + 10 < right
								? e.pageX + 10
								: e.pageX - tipWidth)
								+ "px"
					});
		};

		var timer = "";
		var event = "";
		$(this).mouseover(function(e) {
					var obj = this;
					event = e;
					timer = setTimeout(function() {
								tipHtml = o.content(obj);

								$tip.html(tipHtml);

								o.showFn($tip, obj);
								$tip.show();
								setState();
								setPos(event);
								isMove = true;

							}, o.time);

				}).mouseout(function() {
					if (isMove) {
						$tip.hide();
						o.hideFn($tip, this)
						isMove = false;
					} else {
						if (timer != "") {
							clearTimeout(timer);
						}
					}
				});

		if (o.hover) {
			$(this).mousemove(function(e) {
						event = e;
						if (isMove) {
							setPos(e);
							$tip.show();
						}
					});
		}

		return this;
	},
	/**
	 * <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	 * "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 目前只支持在 xhtml
	 * 1.0下 使用 其他模式下会有坐标不精确问题
	 * 
	 * @param options{
	 *            menuId:弹出层ID,showType:显示方式 默认0 直接显示,event:所用事件默认 contextmenu
	 *            ,offsetX,offsetX:偏移量 默认1 ,options:右键菜单数据}
	 * 
	 * var options = [{ title : "aaa", href : "xxx.html", data : [["bbb",
	 * "bbb.php"], ["cccc", "ccc.php"]] }];
	 * 
	 */
	mouseMenuInit : function(options) {
		var opHtml = "<ul>";
		$(options).each(function() {
			opHtml += "<li><a class='menu-title' href='" + this.href + "' >"
					+ this.title + "</a></li>";
			$(this.data).each(function() {
				opHtml += "<li><a id='" + this[0] + "' href='" + this[2] + "'>"
						+ this[1] + "</a></li>";
			});
		});
		opHtml += "</ul>";
		$(this).html(opHtml);
	},
	mouseMenuShow : function(options) {
		var defaults = {
			menuId : "",
			showType : 0,
			event : "contextmenu",
			eventFn : "",
			offsetX : 1,
			offsetY : 1
		};
		var o = $.extend(defaults, options);

		var $menu = $("#" + o.menuId);

		$(this).bind(o.event, function(e) {
					var pointer = $.pointer(e);
					var mouseMenuTimer = "";

					if ($.isFunction(o.eventFn)) {
						o.eventFn(this);
					}

					$menu.css({
								top : (pointer.y - o.offsetY) + "px",
								left : (pointer.x - o.offsetX) + "px"
							}).show().mouseout(function() {
								mouseMenuTimer = setTimeout(function() {
											$menu.hide();
										}, 300);
							}).mouseover(function() {
								clearTimeout(mouseMenuTimer);
							});

					return false;
				});
	},
	// 拖动菜单
	movemenu : function(options) {
		var defaults = {
			barId : ""
		};
		var isMove = false;
		var isStart = true;
		var $menu = $(this);
		var o = $.extend(defaults, options);
		var $bar = $("#" + o.barId);
		var $body = $("body");
		var offset = "";
		var top = 0;
		var left = 0;
		var parentOffset = {
			top : 0,
			left : 0
		};
		if ($menu.parent().get(0).nodeName != "BODY") {
			parentOffset = $menu.parent().offset();
		}
		var $mask = $("<div id='mouseMask' ></div>");
		$menu.parent().append($mask);
		$mask.css({
					opacity : 0.50,
					filter : "alpha(opacity=50)",
					"background-color" : "#000000",
					"z-index" : 500,
					position : "absolute",
					width : $body.outerWidth(true),
					height : $body.outerHeight(true),
					top : -parentOffset.top,
					left : -parentOffset.left,
					display : "none"
				});

		$menu.css("z-index", 501);

		$bar.mousedown(function(e) {
					offset = $bar.offset();
					isMove = true;
					isStart = true;
					top = e.pageY - offset.top;
					left = e.pageX - offset.left;

				});
		$body.mousemove(function(e) {
					if (isMove) {
						if (isStart) {
							$mask.css("display", "block");
							isStart = false;
						}
						$menu.css({
									top : e.pageY - parentOffset.top - top,
									left : e.pageX - parentOffset.left - left
								});
					}
					return false;
				}).mouseup(function() {
					isMove = false;
					$mask.css("display", "none");
				});

		return this;
	},
	pageBox : function(options) {
		var defaults = {
			totalCount : 0,
			rowCount : 20,
			btnCount : 9,
			fn : function() {
			}
		};
		var $parent = $(this);
		var o = $.extend(defaults, options);

		var pageCount = 0;
		var pageNo = 1;
		var start = 0;
		var end = 0;
		var pageStart = 0;
		var pageEnd = 0;

		if (o.totalCount < o.rowCount) {
			o.rowCount = o.totalCount;
		}
		pageCount = Math.ceil(o.totalCount / o.rowCount);

		end = o.rowCount - 1;

		var html = "";

		html += "<div class='pageBox' ><a id='btnFirst' name='btnNo_1' href='#' class='btn' >首页</a><a id='btnPrevious' name='btnNo_0' class='btn hide' href='#'>上一页</a>";

		for (var i = 1; i <= pageCount; i++) {
			if (i <= 9) {
				html += "<a id='btnNo_" + i + "' name='btnNo_" + i
						+ "' href='#' >" + i + "</a>";
			} else {
				html += "<a id='btnNo_" + i + "' name='btnNo_" + i
						+ "' class='hide' href='#' >" + i + "</a>";
			}
		}

		html += "<a id='btnNext' name='btnNo_2'  class='btn' href='#'>下一页</a>";

		html += "<a id='btnLast' name='btnNo_" + pageCount
				+ "' href='#'  class='btn'>末页</a></div>";

		$parent.html(html);

		$btnPrevious = $parent.find("#btnPrevious");
		$btnNext = $parent.find("#btnNext");

		$parent.find("a[name^=btnNo]").click(function() {

					pageNo = parseInt($(this).attr("name").split("_")[1]);

					// 点击首页或末页 页码变动
					if ($("#btnNo_" + pageNo).hasClass("hide")) {
						$("a[id^='btnNo']").addClass("hide");
						if ($(this).attr("id") == "btnFirst") {

							if (pageCount > o.btnCount) {
								for (var i = 1; i <= o.btnCount; i++) {
									$("#btnNo_" + i).removeClass("hide");
								}
							} else {
								for (var i = 1; i <= pageCount; i++) {
									$("#btnNo_" + i).removeClass("hide");
								}
							}

						} else if ($(this).attr("id") == "btnLast") {
							for (var i = pageNo - 8; i <= pageNo; i++) {
								$("#btnNo_" + i).removeClass("hide");
							}
						}
					}
					// 当前选中页码变色
					$("a[id^='btnNo']").removeClass("here");
					$("#btnNo_" + pageNo).addClass("here");

					// 点击 上一页 下一页
					if (pageNo > 1 && pageNo < pageCount) {
						if ($btnPrevious.hasClass("hide")) {
							$btnPrevious.removeClass("hide");
						}
						if ($btnNext.hasClass("hide")) {
							$btnNext.removeClass("hide");
						}
					} else if (pageNo <= 1) {
						$btnPrevious.addClass("hide");
						$btnNext.removeClass("hide");

					} else {
						$btnNext.addClass("hide");
						$btnPrevious.removeClass("hide");

					}

					$btnPrevious.attr("name", "btnNo_" + (pageNo - 1))
					if (pageCount != 1) {
						$btnNext.attr("name", "btnNo_" + (pageNo + 1));
					} else {
						$btnNext.attr("name", "btnNo_1");
					}
					// 点击当前最大或最小页码后 页码变动
					if (pageNo == pageCount) {
						pageEnd = pageNo;
						if (pageEnd <= o.btnCount) {
							pageStart = 1;
						} else {
							pageStart = pageEnd - 8;
						}
					} else if (pageNo == 1) {
						pageStart = 1;
						if (pageCount < o.btnCount) {
							pageEnd = pageCount;
						} else {
							pageEnd = pageStart + 8;
						}
					}
					if ((pageNo == pageEnd) && (pageEnd != pageCount)) {
						pageEnd = pageNo + 1;
						pageStart = pageNo - 7;
						$("#btnNo_" + pageEnd).removeClass("hide");
						$("#btnNo_" + (pageNo - 8)).addClass("hide");

					} else if ((pageNo == pageStart) && (pageStart != 1)) {
						pageStart = pageNo - 1;
						pageEnd = pageNo + 7;
						$("#btnNo_" + pageStart).removeClass("hide");
						$("#btnNo_" + (pageNo + 8)).addClass("hide");
					}

					// ==开始行数 结束行数
					start = o.rowCount * (pageNo - 1);
					end = start + o.rowCount - 1;

					if (end > (o.totalCount - 1)) {
						end = (o.totalCount - 1);
					}

					// 执行行数范围内的函数
					o.fn(start, end);

					return false;
				});

		$parent.find("#btnFirst").click();
	},
	drag : function(options) {
		var o = {
			to : "",
			style : "",
			startFn : function() {// 参数$from
			},
			endFn : function() {
			},
			endOutFn : function() {
			},
			moveStartFn : function() {
			},
			moveFn : function() {// 参数$from $to
			}
		};
		o = $.extend(o, options);
		var $body = $("body");
		var $from = $(this);
		var $drag = $("#drag");

		var isDrag = false;
		var isStart = false;
		var dragType = [];
		var toIndex = 0;
		var fromIndex = 0;
		var tempImg = "";
		var nowFrom = "";

		if ($("#drag").size() == 0) {
			$drag = $("<div id='drag' class='" + o.style
					+ "' ><img src='' /></div>");
			$body.append($drag);

		}
		var fw = "";
		var fh = "";

		for (var i = 0; i < this.length; i++) {
			dragType[i] = Array(false, true);// [a,b]a 是否from to相同 b是否可拖动
		}

		$($from).each(function(i, f) {
					$(o.to).each(function(j, t) {
								if (f == t) {
									dragType[i] = [true, false];
									return false;
								}
							});
				});

		$from.mousedown(function(e) {
			if (e.button != 2) {
				nowFrom = this;
				fromIndex = $from.index(nowFrom);

				if (dragType[fromIndex][1]) {

					isDrag = true;
					isStart = true;

					fw = $(this).width();
					fh = $(this).height();

					$drag
							.css({
										width : fw,
										height : fh
									})
							.find("img")
							.attr("width", fw)
							.attr("height", fh)
							.attr(
									"src",
									$(this).css("background-image").split("(")[1]
											.split(")")[0].replace(/\"/g, ""));
					o.startFn(this);
				}
			}
			return false;
		});

		o.to.mouseup(function() {
					if (isDrag) {

						isStart = false;
						isDrag = false;
						toIndex = $from.index(this);

						if (dragType[fromIndex][0]) {
							dragType[fromIndex][1] = dragType[toIndex][1];
							$(nowFrom).css("background-image",
									$(this).css("background-image"));
						}

						dragType[toIndex][1] = true;

						o.endFn(nowFrom, this);
						$(this).css({
							"background-image" : "url("
									+ $drag.find("img").attr("src") + ")"
						});

					}
				});
		$body.mousemove(function(e) {

					if (isDrag) {
						if (isStart) {
							isStart = false;
							$drag.css({
										display : "block"
									});
							if (dragType[fromIndex][0]) {
								tempImg = $(nowFrom).css("background-image");
								$(nowFrom).css("background-image", "");
							}
							o.moveStartFn($drag, nowFrom);

						}
						o.moveFn(nowFrom);
						$drag.css({
									top : e.pageY + 5 + "px",
									left : e.pageX + 5 + "px"
								});

					}
					return false;
				}).mouseup(function(e) {

					$drag.css({
								"display" : "none"
							});

					o.endOutFn(nowFrom);
					isStart = false;
					isDrag = false;
				});

		return this;

	},
	// drag new
	drag2 : function(options) {

		var o = {
			to : "",
			style : "",
			isImg : false,
			isSize : true,
			unbind : false,
			startFn : function() {// 参数$from
			},
			endFn : function() {
			},
			endOutFn : function() {
			},
			moveStartFn : function() {
			},
			moveFn : function() {// 参数$from $to
			}
		};
		o = $.extend(o, options);

		var $body = $("body");
		var $from = $(this);
		var $drag = $("#drag");

		var isDrag = false;
		var isStart = false;
		var tempMove = "";
		var toIndex = 0;
		var fromIndex = 0;
		var tempImg = "";
		var nowFrom = "";
		if ($("#drag").size() == 0) {
			$drag = $("<div id='drag' class='" + o.style
					+ "' ><img src='' /></div>");
			$body.append($drag);
		}

		var fw = "";
		var fh = "";

		$($from).each(function(i, f) {
					$(this).attr("move", "2");
				});

		o.to.each(function() {
					$(this).attr("move", "0");
				});

		var start = function(e) {
			if (e.button != 2) {
				nowFrom = this;

				if ($(nowFrom).attr("move") == "1"
						|| $(nowFrom).attr("move") == "2") {

					isDrag = true;
					isStart = true;

					if (o.isSize) {
						fw = $(this).width();
						fh = $(this).height();

						$drag.css({
									width : fw,
									height : fh
								});
					}
					$drag.find("img").attr(
							"src",
							$(this).css("background-image").split("(")[1]
									.split(")")[0].replace(/\"/g, ""));
					o.startFn(this);

					// create event
					o.to.unbind("mouseup", end).bind("mouseup", end);
					$body.unbind("mousemove", move).unbind("mouseup", moveup)
							.bind("mousemove", move).bind("mouseup", moveup);

				}

			}
			return false;
		}

		var end = function(e) {
			if (isDrag) {
				alert("end");
				isStart = false;
				isDrag = false;

				if ($(nowFrom).attr("move") != "2") {
					$(nowFrom).attr("move", $(this).attr("move"));
					if ($(this).attr("move") == "0") {

						$(nowFrom).css("background-image", "");
						if (o.isImg) {
							$(nowFrom).empty();
						}
					}
				}
				$(this).attr("move", "1");

				o.endFn(nowFrom, this);
				$(this).css({
					"background-image" : "url(" + $drag.find("img").attr("src")
							+ ")"
				});
				if (o.isImg) {
					if ($(this).find("img").size() != 0) {
						$(this).find("img").attr("src",
								$drag.find("img").attr("src"));
					} else {
						$(this).html("<img src='"
								+ $drag.find("img").attr("src") + "' />");
					}
				}

			}
		}

		var move = function(e) {
			if (isDrag) {
				if (isStart) {

					isStart = false;

					$drag.css({
								display : "block"
							});

					o.moveStartFn($drag, nowFrom);

				}
				o.moveFn(nowFrom);
				$drag.css({
							top : e.pageY + 5 + "px",
							left : e.pageX + 5 + "px"
						});
			}
			return false;
		};

		var moveup = function(e) {
			$drag.css({
						"display" : "none"
					});

			o.endOutFn(nowFrom);
			isStart = false;
			isDrag = false;
		}

		// event main
		$from.bind("mousedown", start);

		return this;

	}
});

function stopDefault(e) {
	if (e && e.preventDefault) {
		e.preventDefault();
	} else {
		window.event.returnValue = false;
	}
	return false;
}

function rnd() {
	var loopcount = 0;

	do {

		imgcnt = parseInt(Math.random() * 7999);

		loopcount++;

		if (loopcount > 20)
			break;

	} while ($('#img' + imgcnt) != null);
}
function pause(numberMillis) {
	var dialogScript = 'window.setTimeout('
			+ ' function () { window.close(); }, ' + numberMillis + ');';
	var result = window.showModalDialog('javascript:document.writeln('
			+ '"<script>' + dialogScript + '<' + '/script>")');
}

function axGetXml() { // 按网上找的资料判断，但是不管用！！！
	if (window.ActiveXObject) {// IE浏览器
		return new ActiveXObject("Microsoft.XMLDOM");
	} else if (document.implementation
			&& document.implementation.createDocument) { // 其它浏览器
		return document.implementation.createDocument("", "", null);
	}
}
